import req from './req'

export function getShopList(params) {
    return req.get('/distributors', params)
}
export function addShop(params) {
    return req.post('/distributor', params)
}
// 商家具体信息
export function getMerchantById(params) {
    return req.get('/distributors/info', params)
}
// 商家可退货店铺
export function getMerchantAftersales(params) {
    return req.get('/distributors/aftersales', params)
}
// 修改商家信息
export function editMerchant(params) {
    return req.put('/distributor/' + params.distributor_id, params)
}
// 企业信息
export function getEnterpriseInfo() {
    return req.get('/merchant/info')
}
// 获取实时概况}
export function getStatistics() {
    return req.get('/getStatistics')
}
// 店铺管理员
export function getPeopleManagement(data) {
    return req.get('/account/management', data)
}
// 店铺管理员添加
export function postPeopleManagement(data) {
    return req.post('/account/management', data)
}
// 店铺管理员ziugai
export function updatePeopleManagement(data) {
    return req.patch('/account/management/'+data.operator_id, data)
}
// 禁用管理账号
export function getPeopleChangestatus(data) {
    return req.put('/operator/changestatus', data)
}